<?php

$fp = popen("ls *.c","r");
$clist = stream_get_contents($fp);
$clist = str_replace("\n"," ",$clist);
pclose($fp);

$cmd = "gcc {$clist} -std=gnu99 -g -o mywget";
//echo $cmd."\n";
$fp = popen($cmd,"r");
pclose($fp);

echo "./mywget http://static.mengkang.net/upload/image/2019/1012/1570878677199291.png\n";
exit;
